﻿/*
 * @author: wizardc
 */

namespace Dou.Clock
{
    /// <summary>
    /// 时钟管理器接口
    /// </summary>
    public interface IClockManager
    {
        /// <summary>
        /// 是否暂停
        /// </summary>
        bool paused { set; get; }

        /// <summary>
        /// 运行速率
        /// </summary>
        float runningRate { set; get; }

        /// <summary>
        /// 已经运行的时间
        /// </summary>
        float time { get; }

        void AddClient(IClockClient client);

        bool HasClient(IClockClient client);

        void RemoveClient(IClockClient client);

        void Clear(bool destroy);
    }
}
